﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Kunden.master" CodeBehind="WebFormAnsprechpartner.aspx.vb" Inherits="PMS_Linq.WebFormAnsprechpartner" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    
    
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="Label1" runat="server" Text="Label" style="font-size: x-large" ></asp:Label>
    <b>
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:LinqDataSource 
                    ID="LinqDataSourceAnsprech" runat="server" 
                    ContextTypeName="PMS_Linq.hc_databaseDataContext" EnableDelete="True" 
                    EnableUpdate="True" TableName="Ansprechpartners" 
                    Where="Kunde_id == @Kunde_id">
        <WhereParameters>
            <asp:SessionParameter 
                            Name="Kunde_id" SessionField="KundeID" Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>
    <asp:GridView ID="GVAnsprech" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="ID" DataSourceID="LinqDataSourceAnsprech">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="Vorname" HeaderText="Vorname" 
                                SortExpression="Vorname" />
            <asp:BoundField DataField="Nachname" HeaderText="Nachname" 
                                SortExpression="Nachname" />
            <asp:BoundField DataField="Telefonnummer" HeaderText="Telefonnummer" 
                                SortExpression="Telefonnummer" />
            <asp:BoundField DataField="Fax" HeaderText="Fax" SortExpression="Fax" />
            <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
                                ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
    <asp:Table ID="Table1" runat="server" Height="78px" Width="678px" 
                        HorizontalAlign="Left" GridLines="Both">
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">Vorname</asp:TableCell>
            <asp:TableCell runat="server">Nachname</asp:TableCell>
            <asp:TableCell runat="server">Telefonnr.</asp:TableCell>
            <asp:TableCell runat="server">Fax</asp:TableCell>
            <asp:TableCell runat="server">email</asp:TableCell>
            <asp:TableCell runat="server">  </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell runat="server">  <asp:TextBox 
                                ID="VornameTextBox" runat="server"  />
</asp:TableCell><asp:TableCell runat="server" Width="80px" >  <asp:TextBox ID="NachnameTextBox" 
                                runat="server"  Width="150px" />
</asp:TableCell><asp:TableCell runat="server">  <asp:TextBox 
                                ID="TelefonnummerTextBox" runat="server" Width="100px"  />
</asp:TableCell><asp:TableCell runat="server">  <asp:TextBox ID="FaxTextBox" 
                                runat="server"  Width="100px" />
</asp:TableCell><asp:TableCell runat="server">  <asp:TextBox ID="emailTextBox" 
                                runat="server"  Width="100px" />
</asp:TableCell><asp:TableCell runat="server">                
                            <asp:LinkButton ID="btnAnsprechNeu" runat="server">Hinzufügen</asp:LinkButton>
</asp:TableCell></asp:TableRow></asp:Table></b><br __designer:mapid="206" />
    <br /><br /><br /><br /><br __designer:mapid="21e" />
    <br /><br /><br /><br /><br />     <asp:Label 
                    ID="lblKundenkontakt" runat="server" Text="Kontakthistorie" 
                    style="font-weight: 700"></asp:Label><asp:GridView 
                    ID="GridView1" runat="server" 
                        AutoGenerateColumns="False" DataKeyNames="ID" 
                        DataSourceID="LinqDataSourceKontakte"><Columns><asp:BoundField DataField="ID" 
                                HeaderText="ID" InsertVisible="False" ReadOnly="True" 
                            SortExpression="ID" /><asp:BoundField 
                                DataField="ArtKontakt" HeaderText="ArtKontakt" 
                            SortExpression="ArtKontakt" /><asp:BoundField 
                                DataField="Inhalt" HeaderText="Inhalt" 
                SortExpression="Inhalt" /><asp:BoundField 
                                DataField="AnsprechpartnerID" HeaderText="AnsprechpartnerID" 
                                SortExpression="AnsprechpartnerID" /><asp:BoundField 
                                DataField="Betreff" HeaderText="Betreff" 
                                SortExpression="Betreff" /><asp:BoundField DataField="Datum" 
                                HeaderText="Datum" SortExpression="Datum" /><asp:CommandField 
                                ShowDeleteButton="True" ShowEditButton="True" /></Columns></asp:GridView><asp:Table 
                    ID="Table2" runat="server" CellPadding="1" CellSpacing="1" GridLines="Both" 
                    Height="78px" Width="678px"><asp:TableRow runat="server"><asp:TableCell 
                            runat="server">Art des Kontaktes</asp:TableCell><asp:TableCell 
                            runat="server">Inhalt</asp:TableCell><asp:TableCell 
                            runat="server">Betreff</asp:TableCell><asp:TableCell 
                            runat="server">Datum</asp:TableCell><asp:TableCell 
                            runat="server">  </asp:TableCell></asp:TableRow><asp:TableRow 
                        runat="server"><asp:TableCell runat="server"> 
                 
                         <asp:TextBox 
                                ID="ArtTextBox0" runat="server" Width="150px" />
                        
</asp:TableCell><asp:TableCell runat="server">  

<asp:TextBox ID="InhaltTextBox0" 
                                runat="server" TextMode="MultiLine" Width="180px" ForeColor = "Black"  />
</asp:TableCell><asp:TableCell runat="server">  <asp:TextBox 
                                ID="BetreffTextBox0" runat="server" TextMode="MultiLine"  ForeColor = "Black"
                            Width="180px" />
</asp:TableCell><asp:TableCell runat="server">  <asp:TextBox ID="DatumTextBox0" 
                                runat="server"  Width="80px" /><cc1:CalendarExtender 
                            ID="CalendarExtender1" runat="server" 
                TargetControlID="DatumTextBox0" Format="dd-MM-yy"></cc1:CalendarExtender>
</asp:TableCell><asp:TableCell runat="server">                
                            <asp:LinkButton ID="btnKontaktNeu0" runat="server">Hinzufügen</asp:LinkButton>
</asp:TableCell></asp:TableRow></asp:Table><br /><br /><br /><br __designer:mapid="244" /><asp:LinqDataSource 
                        ID="LinqDataSourceKontakte" runat="server" 
                        ContextTypeName="PMS_Linq.hc_databaseDataContext" EnableDelete="True" 
                        EnableUpdate="True" TableName="Kundenkontakts" 
                        Where="AnsprechpartnerID == @AnsprechpartnerID"><WhereParameters><asp:SessionParameter 
                                Name="AnsprechpartnerID" SessionField="AnsprechID" 
                Type="Int32" /></WhereParameters></asp:LinqDataSource><br 
                    __designer:mapid="248" /></asp:Content>
